﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HunterJobList.ascx.cs" Inherits="Job.Web.userControls.Hunter.HunterJobList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<table width="99%" border="0">
    <tr>
        <td align="right" width="100%" height="30" valign="baseline" bgcolor="F2F6F9">
            <table width="100%">
                <tr>
                    <td width="11%" align="center" class="prompt">搜索关键字</td>
                    <td width="22%" align="left">
                        <asp:TextBox ID="tbSearchKey" runat="server"></asp:TextBox>
                    </td>
                    <td align="left">
                        <asp:Button ID="btSearch" runat="server" Text=" 搜 索 " CssClass="btn_2k3" 
                            onclick="btSearch_Click" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="right" width="100%">
            <webdiyer:AspNetPager Width="100%" ID="pagerTop" runat="server" 
				ButtonImageNameExtension="n" ButtonImageExtension=".gif"
                DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
				CssClass="pagination" CurrentPageButtonClass="current"
                PagingButtonClass="" PagingButtonLayoutType="Span" PageSize="10" 
                onpagechanged="pagerTop_PageChanged" 
                onpagechanging="pagerTop_PageChanging" 
                CustomInfoHTML="共<font color='red'> %RecordCount% </font>条记录 当前第<font color='red'> %CurrentPageIndex% </font>页/共<font color='red'> %PageCount% </font>页"
                LayoutType="Table" ShowCustomInfoSection="Left" 
				CustomInfoClass="pagerCustomerinfo" AlwaysShow="True" 
				CustomInfoTextAlign="Left" HorizontalAlign="Right">
            </webdiyer:AspNetPager>
        </td>
    </tr>
    <tr>
        <td>        
            <asp:DataList Width="100%" ID="jobList" runat="server" OnItemDataBound="jobList_ItemDataBound">
                <HeaderTemplate>
                    <table class="subjectList_td" width="100%">
                        <tr>
                            <td width="20%" align="left" valign="top" class="hunter">
                                职位编号                       
                             </td>
                            <td align="left" valign="top" class="hunter">
                                职位名称                       
                             </td>  
                            <td width="20%" align="left" valign="top" class="hunter">
                                所属行业                       
                             </td> 
                            <td width="15%" align="left" valign="top" class="hunter">
                                职位年薪                    
                             </td> 
                        </tr>
                    </table>
                                 
                </HeaderTemplate>
                <ItemTemplate> 
                
                    <table class="subjectList_td" width="100%">
                        <tr>
                            <td width="20%" align="left">
                                <%#DataBinder.Eval(Container.DataItem, "job_no")%>                            
                             </td>
                             <td align="left">                                
                                <asp:HyperLink ID="jobLink" runat="server"  CssClass="subjectList_A"
                                    Text='<%#DataBinder.Eval(Container.DataItem,"name") %>' 
                                    NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "job_no")%>'>
                                </asp:HyperLink>&nbsp;&nbsp;                         
                                
                                <asp:Label ID="jobNo" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"job_no")%>'></asp:Label>
                                (<asp:Label ID="jobDate" Visible="true" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"create_date","{0:yyyy-MM-dd}")%>'></asp:Label>)
                            </td>
                            <td width="20%" align="left">
                                <%#DataBinder.Eval(Container.DataItem, "industry")%>
                            </td>
                            <td width="15%" align="left">
                                <%#DataBinder.Eval(Container.DataItem, "salary")%>
                            </td>  
                        </tr>
                    </table>
                    
                         
                </ItemTemplate>
            </asp:DataList>
        </td>
    </tr>
    <tr>
        <td align="right" Width="100%">
            <webdiyer:AspNetPager Width="100%" ID="pagerButtom" runat="server" ButtonImageNameExtension="n"
                ButtonImageExtension=".gif" DisabledButtonImageNameExtension="g" 
				CpiButtonImageNameExtension="r" CssClass="pagination" CurrentPageButtonClass="current"
                PagingButtonClass="" PagingButtonLayoutType="Span" PageSize="10" 
                CustomInfoHTML="共<font color='red'> %RecordCount% </font>条记录 当前第<font color='red'> %CurrentPageIndex% </font>页/共<font color='red'> %PageCount% </font>页" 
                onpagechanged="pagerButtom_PageChanged" 
                onpagechanging="pagerButtom_PageChanging" ShowCustomInfoSection="Left" 
				FirstLastButtonStyle="" MoreButtonStyle="" 
				PagingButtonStyle="" CustomInfoClass="pagerCustomerinfo" LayoutType="Table" 
				AlwaysShow="True" CustomInfoTextAlign="Left" HorizontalAlign="Right">
            </webdiyer:AspNetPager>
        </td>
    </tr>   
</table>
